package com.cssw.fyzb.wap.controller;

import com.cssw.fyzb.base.web.context.UserContext;
import com.cssw.fyzb.base.web.domain.AjaxData;
import com.cssw.fyzb.base.web.domain.AjaxPage;
import com.cssw.fyzb.wap.model.dto.CollectTaskDto;
import com.cssw.fyzb.wap.model.dto.ViewDailyTaskDto;
import com.cssw.fyzb.wap.model.dto.ViewTaskVideoDto;
import com.cssw.fyzb.wap.model.vo.*;
import com.cssw.fyzb.wap.service.AdNumPriceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;


/**
 * @Auther: zzf
 * @Date: 2020/12/15 17:26
 * @Description:
 */
@Api(description = "任务相关接口")
@Controller
@RequestMapping("/adNumPrice")
public class AdNumPriceController {

    @Autowired
    private AdNumPriceService adNumPriceService;

    @ApiOperation(value = "今日增值记录")
    @RequestMapping(value = "/adNumPriceLog", method = RequestMethod.GET)
    @ResponseBody
    public AjaxData adNumPriceLog() {
        return adNumPriceService.adNumPriceLog(UserContext.getUserId());
    }

    @ApiOperation(value = "看广告")
    @RequestMapping(value = "/lookAd", method = RequestMethod.POST)
    @ResponseBody
    public AjaxData lookAd() {
        return adNumPriceService.lookAd(UserContext.getUserId());
    }

}
